import axios from 'axios'
import { get_cache } from "@/util/cache.js"
import { dbIp } from './config.js'
var ip = dbIp

export function getVideoListByMasterId (data){
    return axios({
        method: "get",
        url: ip + "/video/getListByMasterId",
        params: data
    }) 
}

export function getVideoListByTopic (data){
    return axios({
        method: "get",
        url: ip + "/video/getVideoListByTopic",
        params: data
    }) 
}

export function getCheckVideoListByMasterId (){
    return axios({
        method: "get",
        url: ip + "/video/getCheckVideoListByMasterId",
        params: {
            user: get_cache("token")
        }
    }) 
}

export function getVideoListByCollect (){
    return axios({
        method: "get",
        url: ip + "/video/getVideoListByCollect",
        params: {
            user: get_cache("token")
        }
    }) 
}

// video_id
// user
export function delVideo (data){
    // var id = data.video_id;
    return axios({
        method: "get",
        url: ip + "/video/delVideo",
        params: data
    }) 
}

